package cn.jilian.common.service.impl;

import java.io.File;
import java.io.InputStream;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import cn.jilian.common.domain.FileInfo;
import cn.jilian.common.service.FileService;


/**
 * 基于磁盘文件系统的文件存储服务
 * */
@Service
public class FileSystemFileService implements FileService {

	private JdbcTemplate jdbcTemplate;
	
	@Override
	public long save(long fid, String name, File file, long meta) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long save(long fid, String name, InputStream is, String ext, long size, String originalName, long meta) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public long add(long fid, String name, InputStream is, String ext, long size, String originalName, long meta) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public FileInfo get(long fid, String name, long meta) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int update(FileInfo info) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(long sid) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(long fid, String name, long meta) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(long fid, long meta) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Map<String, FileInfo> list(long fid, long meta) {
		// TODO Auto-generated method stub
		return null;
	}

}
